package com.itheima.web;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.pojo.User;
import com.itheima.service.TestService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @outhor
 * @date 2020/1/8 21:31
 */

@RequestMapping("test")
@RestController
public class TestController {

    @Reference
    private TestService testService;

    @RequestMapping("findAll")
    public List<User> findAll(){
        return testService.findAll();
    }
}
